package com.cqwshzj.common;/**
 * @Description:
 * @Auther: Huang Zhijin
 * @Version: 1.0.0
 * @Date: 2021/4/7 09:18
 */

import com.cqwshzj.util.SysUtils;

/**
 * 〈〉
 *
 * @author Huang Zhijin
 * @create 2021/4/7
 * @since 1.0.0
 */
public interface JobConstant {

	/** 当前机器的IP */
	String DEVICE_IP = SysUtils.getCurDevId();
	//-------------

	String DATETIME_1 ="yyyyMMddHHmmss";
	String DATETIME_2 ="yyyyMMddHHmmssSSS";
	String DATETIME_3 ="yyyy-MM-dd HH:mm:ss";
	String DATETIME_4 ="yyyy-MM-dd HH:mm:ss.SSS";
	String DATETIME_5 ="yyyy-MM-dd HH-mm-ss-SSS";

	String DATETIME_ECS ="yyyy-MM-dd'T'HH:mm:ss'Z'";

	String DATE_1 ="yyyyMMdd";
	String DATE_2 ="yyyy-MM-dd";
	String DATE_3 ="yyyy/MM/dd";

	String TIME_1 ="HH:mm:ss.SSS";
	String TIME_2 ="HH:mm:ss";
	String TIME_3 ="HHmmssSSS";
	String TIME_4 ="HHmmss";

	String JOB_DATETIME = DATETIME_2 ;

	String JOB_dATE = DATE_1 ;

	String JOB_ZK_DATETIME = DATETIME_5 ;

	//----------------------------

	String COMMON_YES ="1";
	String COMMON_NO ="0";

	String STATUS_ENABLE = "1";
	String STATUS_DISABLE = "0";


	//-------------------------------
	/** 执行超时 */
	String JOB_STATE_TIMEOUT = "-2";
	/** 执行失败 */
	String JOB_STATE_FAILED = "-1";
	/** 未执行 */
	String JOB_STATE_WAIT_TO_EXECUTE = "0";
	/** 准备执行（等待中） */
	String JOB_STATE_READY_TO_EXECUTE = "1";
	/** 执行中 */
	String JOB_STATE_EXECUTING = "2";
	/** 执行完毕 */
	String JOB_STATE_COMPLETE = "3";

	//---------------------------
	/** 任务策略类型，每日执行一次，1 */
	int JOB_STRATEGY_TYPE_ONCE_A_DAY = 1;
	/** 任务策略类型，每日周期执行，3 */
	int JOB_STRATEGY_TYPE_INTERVAL = 3;
	/** 任务策略类型，仅执行一次，4 */
	int JOB_STRATEGY_TYPE_ONLY_ONCE = 4;


	//-----------------------------

	int DEFAULT_TIME_WINDOW = 60;

	//------------------

	int DELAY_SECONDS_BEGIN = 5;
	int DELAY_SECONDS_END = 15;


	//---------------------


	String PARAMS_KEY_APP_ID = "appid";
	String PARAMS_KEY_APP_IDS = "appids";
	String PARAMS_KEY_TASKID = "taskid";
	String PARAMS_KEY_FILESIZE = "filesize";
	String PARAMS_KEY_SN = "sn";

	String PARAMS_KEY_OCCURDATE = "occurdate";
	String PARAMS_KEY_DAYS = "days";
	String PARAMS_KEY_BEGIN_DATE = "begindate";
	String PARAMS_KEY_END_DATE = "enddate";
	String PARAMS_KEY_BUCKET_NAME = "bucketName";

	String PARAMS_KEY_SHARDING_TOTAL_COUNT = "shardingTotalCount";

}
